#include "../../include/WebPageSearcher/word_segmentation.h"


// "我来到北京清华大学"----->>>["我", "来到", "北京", "清华", "清华大学", "华大", "大学"]
vector<string> search_engine::WordSegmentation::operator()(const string str)
{
    vector<string> words;
    _jieba.CutAll(str, words); //FullSegment
    return words;
}

void search_engine::WordSegmentation::CutSmall(const string & str, vector<string> & vec, size_t sz)
{
    _jieba.CutSmall(str, vec, sz);
}
